<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>响应式布局</title>
	<style>
		
		.box{
			width: 100%;
			max-width: 800px;
			min-width: 400px;
			height: 200px;
			background: red url() 0 0 no-repeat;
			float: left;
		}
		.hide{
			width: 200px;
			height: 200px;
			background: blue url() 0 0 no-repeat;
			float: left;
			padding: 10px;
			box-sizing: border-box;
			margin-left: 10px;
		}

		@media screen and (max-width: 600px) {
		    .box {
		        background: blue url() 0 0 no-repeat;
		    }
		    .hide{
		    	display: none;
		    }
		}

		@media screen and (min-width: 800px) {
		    .box {
		        background: yellow url() 0 0 no-repeat;
		    }
		}
	</style>
</head>
<body>
	<div class="box">
		box
	</div>
	<div class="hide">
		hide
	</div>
</body>
</html>